package com.zr.sms.serviceimpl;

import com.zr.sms.dao.CashregisterDao;
import com.zr.sms.daoimpl.CashregisterDaoImpl;
import com.zr.sms.service.FindCashService;

import net.sf.json.JSONObject;

public class FindCahServiceImpl implements FindCashService{
	CashregisterDao cashregister = new CashregisterDaoImpl();

	public JSONObject findcash(int start, int pageSize) {
		JSONObject cash = new JSONObject();
		cash.put("total", cashregister.getCashCount());
		cash.put("rows", cashregister.getCash(start, pageSize));
		return cash;
	}
	
	public double getAllMoney() {
		// TODO Auto-generated method stub
		return cashregister.getAllMoney();
	}

	public int updateCash(String[] cids) {
		// TODO Auto-generated method stub
		return cashregister.updateCash(cids);
	}

}
